{include file="public/header" /}
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 资产管理
    <span class="c-gray en">&gt;</span> 待交易列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form  method="get" action="">
        <div class="text-c">
            日期范围：
            <input type="text" onfocus="WdatePicker()" value="{:input('get.start')}" name="start" id="datemin" class="input-text Wdate" style="width:120px;">
             -
            <input type="text" onfocus="WdatePicker()" value="{:input('get.end')}" name="end" id="datemax" class="input-text Wdate" style="width:120px;">
            <input type="text" class="input-text" style="width:150px" placeholder="发布者id/账号" value="{:input('word')}" name="word">
            <input type="text" class="input-text" style="width:150px" placeholder="订单号" value="{:input('sn')}" name="sn">
            <span class="select-box" style="width: 100px">
                <select name="coin_symbol" class="select">
                    <option value="0">发布币种</option>
                    <option value="USDT" {if isset($_GET['coin_symbol']) && $_GET['coin_symbol'] == 'USDT'}selected{/if}>USDT</option>
                    <option value="CPA" {if isset($_GET['coin_symbol']) && $_GET['coin_symbol'] == 'CPA'}selected{/if}>CPA</option>
                </select>
            </span>
            <span class="select-box" style="width: 100px">
               <select name="type" class="select">
                <option value="0">类型</option>
                <option value="1" {if isset($_GET['type']) && $_GET['type'] == '1'}selected{/if}>买单</option>
                   <option value="2" {if isset($_GET['type']) && $_GET['type'] == '2'}selected{/if}>卖单</option>
            </select>
            </span>

            <button type="submit" class="btn btn-success">搜索</button>
        </div>
    </form>

    <div class="cl pd-5 bg-1 bk-gray mt-20">
        <span class="l">
        </span>
        <span class="r">共有数据：<strong>{$list->total()}</strong> 条</span> </div>
    <table class="table table-border table-bordered table-hover table-bg">
        <thead>
            <tr>
                <th scope="col" colspan="9">账户列表</th>
            </tr>
            <tr class="text-c">
                <th width="30">ID</th>
                <th width="80">订单号</th>
                <th width="120">发布者账号</th>
                <th width="150">剩余数量</th>
                <th width="120">购买限制</th>
                <th width="80">类型</th>
                <th width="80">时间</th>
            </tr>
        </thead>
        <tbody>
            {foreach $list as $v}
            <tr class="text-c">
                <td>{$v.id}</td>
                <td>{$v.sn}</td>
                <td>{$v.uid}-{$v.username}</td>
                <td>{$v.number}{$v.coin_symbol}</td>
                <td>{$v.min}-{$v.min}</td>
                <td>
                    {switch name=$v.type}
                    {case value="1"}买单{/case}
                    {case value="2"}卖单{/case}
                    {default /}无效状态
                    {/switch}
                </td>
                <td>{:date('Y-m-d H:i:s',$v['create_time'])}</td>
            </tr>
            {/foreach}
        </tbody>
    </table>
    <div class="page">
        {$list->render()|raw}
    </div>
</div>

{include file="public/footer" /}